package com.rc.pojo.po.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

// Auto generate by mybatis-flex, do not modify it.
public class EmpTaskTableDef extends TableDef {

    /**
     * 实体类。

 @author 27806
 @since 2024-07-09
     */
    public static final EmpTaskTableDef EMP_TASK = new EmpTaskTableDef();

    public final QueryColumn ID = new QueryColumn(this, "id");

    public final QueryColumn TASK_ID = new QueryColumn(this, "task_id");

    public final QueryColumn EMPLOYEE_ID = new QueryColumn(this, "employee_id");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段，不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, TASK_ID, EMPLOYEE_ID};

    public EmpTaskTableDef() {
        super("rc", "emp_task");
    }

    private EmpTaskTableDef(String schema, String name, String alisa) {
        super(schema, name, alisa);
    }

    public EmpTaskTableDef as(String alias) {
        String key = getNameWithSchema() + "." + alias;
        return getCache(key, k -> new EmpTaskTableDef("rc", "emp_task", alias));
    }

}
